package com.aiti.premu.config;/*
package com.aiti.show.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

import java.io.File;

*/
/**
 * @Author ZhouS
 * @CreateDate 2022-06-09
 * @Description:
 *//*

@Configuration
public class MyWebMvcConfigurer extends WebMvcConfigurationSupport {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {

        String fileSpace = System.getProperty("user.dir") + File.separator + "FileSpace";
        String path = fileSpace + File.separator;
        //   访问相对路径
        registry.addResourceHandler("/assets/**").addResourceLocations("classpath:/assets/");
        //   访问绝对路径 访问路径和 存放路径可以自定义，建议存放路径放到配置文件中
        registry.addResourceHandler("/upload/**").addResourceLocations("file:"+path);
        super.addResourceHandlers(registry);
    }
}
*/
